package com.linchaoen.elema.service;

import com.linchaoen.elema.model.entity.Cart;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface CartService {

    List<Cart> findCartByUserId(Integer userId);

    int addCart(Integer userId, Integer foodId, Integer num);

    int addCartBatch(Integer userId, List<Cart> list);

    int removeCart(Integer uid, Integer id);

    int changeNum(Integer uid, Integer id, Integer num);
}
